#include "WriteExcelManager.hpp"

#include "WriteExcel_base.hpp"
#include "WriteExcel_1.0.hpp"

wxlsx::WriteExcelManager::WriteExcelManager(WExcelVersion version)
    : m_version(version)
{
}

void wxlsx::WriteExcelManager::write_xlsx(const std::string demoFileName, const std::string currentPath, std::shared_ptr<wxlsx::ExcelUtInfoList> infoList)
{
    switch (m_version)
    {
    case WExcelVersion::WEXCEL_BASE:
        write_xlsx_base(demoFileName, currentPath, infoList);
        break;
    case WExcelVersion::WEXCEL_1_0:
        write_xlsx_1_0(demoFileName, currentPath, infoList);
    default:
        break;
    }
}

wxlsx::WriteExcelManager::~WriteExcelManager()
{
}
